#!/bin/bash
#chkconfig: 2345 80 90 
#description: zk_ka_start ....

cd /usr/local/zookeeper/bin
sh /usr/local/zookeeper/bin/zkServer.sh start > /dev/null &
if [ $? -eq 0 ]; then
sleep 1m
sh /usr/local/kafka/bin/kafka-server-start.sh  -daemon /usr/local/kafka/config/server.properties
fi
exit 0
